package com.honey.mybatis.generator.criteria.field;

import com.honey.compilation.java.Field;
import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.core.types.JDKFullyQualifiedJavaType;
import com.honey.mybatis.generator.AbstractField;

public class NoValueField extends AbstractField {
	private static final String FIELD_NAME = "noValue" ;
	
	private static final FullyQualifiedJavaType TYPE = JDKFullyQualifiedJavaType.getBoolInstance();

	private static final String[] JAVA_DOC =new String[]{
		"条件语句没有判定值。 SQL 92中只用 is null和is not null 两种条件没有判定值。 " 
	};
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getFieldName()
	 */
	@Override
	protected String getFieldName() {
		return FIELD_NAME;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getType()
	 */
	@Override
	protected FullyQualifiedJavaType getType() {
		return TYPE;
	}

	/* (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getJavaDoc()
	 */
	@Override
	protected String[] getJavaDoc() {
		
		return JAVA_DOC;
	}
	
	public static void main(String []args){
		NoValueField f = new NoValueField();
		Field field =  f.createField() ;
		System.out.println(field.compiledContent(1));
	}
}
